﻿package de.ventu.loader{		import de.ventu.containers.ImageFlowBox;	import de.ventu.controls.ImageObject;		import flash.events.FileListEvent;	import flash.filesystem.File;	import flash.net.FileFilter;		public class LocalImageLoader	{		private var _imageFlowBox:ImageFlowBox;		private var _imageFile:File;		private var _imageFilter:FileFilter = new FileFilter("Images", "*.jpg;*.gif;*.png;*.swf;");				public function LocalImageLoader(imageFlowBox:ImageFlowBox) 		{			_imageFlowBox = imageFlowBox;		}				public function loadImages():void		{			_imageFile = new File();			_imageFile.browseForOpenMultiple("Select Images", [_imageFilter]);			_imageFile.addEventListener(FileListEvent.SELECT_MULTIPLE, filesSelected);		}				private function filesSelected(event:FileListEvent):void		{			for each(var file:File in event.files)			{				if(!_imageFlowBox.alreadyLoaded(file.url))					new ImageObject(file.url, _imageFlowBox);			}		}	}}